package com.toby.ioc.listener;

import org.springframework.context.ApplicationEvent;

/**
 * @desc: 事件
 * @author: jonathan.zhang
 * @date: 2019/7/13 2:03
 */
public class StopEvent extends ApplicationEvent {

    private boolean stop;

    public StopEvent(boolean stop) {
        super(stop);
        this.stop = stop;
    }

    public boolean isStop(){
        return stop;
    }

    public void setStop(boolean stop){
        this.stop = stop;
    }
}
